import 'package:get/get.dart';

class Comment {
  final String id;
  final String content;
  final String time;
  final int likes;

  Comment({
    required this.id,
    required this.content,
    required this.time,
    required this.likes,
  });
}

class StoryDetailState {
  // 故事数据
  final RxString title = '岁月的痕迹'.obs;
  final RxString content = ''.obs;
  final RxString coverImage = ''.obs;
  final RxInt likes = 0.obs;
  final RxInt comments = 0.obs;

  // 评论列表
  final RxList<Comment> commentList = <Comment>[
    Comment(
      id: '1',
      content: 'Awesome work on the pics!',
      time: 'xx-xx',
      likes: 3,
    ),
    Comment(
      id: '2',
      content: 'Thanks :-)',
      time: 'xx-xx',
      likes: 5,
    ),
  ].obs;
}
